#include<iostream>
using namespace std;
int main()
{
	int a = 0;
	for (int i = 1; i < 43; i++)
	{
		a += i;
	}
	a = a + 7 * 43;
	cout << a << endl;
	return 0;
}